package com.chzker.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Users entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="users"
    ,catalog="school"
)

public class Users  implements java.io.Serializable {


    // Fields    

     private Integer userid;
     private String username;
     private String password;
     private Integer type;
     private Integer state;


    // Constructors

    /** default constructor */
    public Users() {
    }

	/** minimal constructor */
    public Users(String username, String password) {
        this.username = username;
        this.password = password;
    }
    
    /** full constructor */
    public Users(String username, String password, Integer type, Integer state) {
        this.username = username;
        this.password = password;
        this.type = type;
        this.state = state;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="userid", unique=true, nullable=false)

    public Integer getUserid() {
        return this.userid;
    }
    
    public void setUserid(Integer userid) {
        this.userid = userid;
    }
    
    @Column(name="username", nullable=false, length=20)

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Column(name="password", nullable=false, length=20)

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    @Column(name="type")

    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    
    @Column(name="state")

    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }
   








}